package com.show.dao.grid;


import com.show.dto.grid.CellGrid;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

/**
 * Created by yxd on 2018/1/31 0002.
 */
public interface CellGridRepository extends JpaRepository<CellGrid, String>, JpaSpecificationExecutor<CellGrid>,CrudRepository<CellGrid, String> {

    @Modifying
    @Query(value = "DELETE FROM cell_grid WHERE grid_id =?",nativeQuery = true)
    void deleteCellGrid(int gridId);

}
